package com.zhou.JavaAndroidFirm.http;

import com.zhou.JavaAndroidFirm.bean.GirlData;
import com.zhou.JavaAndroidFirm.bean.NewsDetail;
import com.zhou.JavaAndroidFirm.bean.NewsSummary;
import com.jaydenxiao.androidfire.bean.VideoData;

import java.util.List;
import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * @author Administrator
 * @date 2018/7/16 0016
 * @des
 */
public interface HttpService {
    @GET("nc/article/{type}/{id}/{startPage}-20.html")
    Observable<Map<String, List<NewsSummary>>> getNewsList(
            @Path("type") String type, @Path("id") String id,
            @Path("startPage") int startPage);

    @GET("data/福利/{size}/{page}")
    Observable<GirlData> getPhotoList(
            @Path("size") int size,
            @Path("page") int page);

    @GET("nc/video/list/{type}/n/{startPage}-10.html")
    Observable<Map<String, List<VideoData>>> getVideoList(
            @Path("type") String type,
            @Path("startPage") int startPage);

    @GET("nc/article/{postId}/full.html")
    Observable<Map<String, NewsDetail>> getNewDetail(@Path("postId") String postId);
}
